<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../jqgrid.jsp"></jsp:include>

</head>
<script type="text/javascript">
	$(document).ready(function() {
		jQuery("#carPositionlist").jqGrid({
			url : 'queryCarPosition.action',
			autowidth : true,
			datatype : "json",
			colNames : [ 'id','位置','区域','备注'],
			colModel : [ {
				name : 'id',
				index : 'id',
				width : 55,
				editable : false,
				hidden:true
			}, {
				name : 'position',
				index : 'position',
				width : 20,
				editable : true,
				align : "center",
				editrules:{
					required:true,
				},
				searchoptions :{
					sopt:['cn','nc']
				}
			},{
				name : 'area',
				index : 'area',
				align : "center",
				width : 20,
				editable : true,
				editrules:{
					required:true,
				},
				searchoptions :{
					sopt:['cn','nc']
				}
			},{
				name : 'remark',
				index : 'remark',
				width : 20,
				align : "center",
				editable : true,
				editrules:{
					required:true,
				},
				searchoptions :{
					sopt:['cn','nc']
				}

			}],
			rowNum : 10,
			rowList : [ 10, 20, 30 ],
			pager : '#carPositiongridPager',
			sortname : 'id',
			viewrecords : true,
			jsonReader : {
				repeatitems : false
			},
			sortorder : "desc",
			caption : "车位信息列表",
			editurl:"editCarPosition.action"
		});
		jQuery("#carPositionlist").jqGrid('navGrid', '#carPositiongridPager', {
			edit : true,
			add : true,
			del : true
		}, {}, {}, {},{multipleSearch:true});
	});
	datePick = function(elem)
	{
	   jQuery(elem).datepicker();
	}
</script>
<body>
	<div align="center">
		<table id="carPositionlist"></table>
		<div id="carPositiongridPager"></div>
	</div>
</body>
</html>